Add a RESTful Web Service Data Source

To add a RESTful web service data source:

Choose New Data Source from the Project group of the Ribbon's Home tab. This will display a sub-menu of the different data source types.

Choose Standard Web Service.

 

The New Web Service dialog box will be displayed.

Enter a name for this Data Source in the Name field. This name is used to reference the Data Source within your Project.

Choose REST in the Service Type field. The remaining options will change according to your choice here.

Enter a URL for the awi web service location, such as http://myserver/webservice.asmx.

Enter a Username and Password, if required to allow App Server to impersonate a specific Windows user when using this web service. Note the password will be displayed as asterisks.

Select the type of content the web service will expect in the Content Type field.

Enter any parameters for this Web Service that you want to be able to map to Controls.

To enter a parameter, click on the Add button below the Parameters list. A new parameter will be added to the list and you can then edit the values for it by clicking in each table cell in turn that you want to edit.

Parameters can be either string values or xml. For xml parameters, you need to supply a schema describing the parameter in the final column of the Parameters list. Click in the final column and select the required schema from the drop-down list. If the schema isn't listed, you can add it in by clicking on the New Schema… button.

For each parameter you also need to specify a direction – select in if the value will come from the web service and out if the value will be sent out to the web service. You can only have ONE out parameter. You can also specify a default value for each parameter, in the Value field.

When you have finished, click on the OK button.

Your web Service will now be listed in the Data Sources Pane – click on the Data Sources tab to display this pane if it isn't already in view. A new window will also appear in the Workspace, showing a tree view of your web service's data types.

Clicking on a node in the tree view in the Data Sources Pane will display the Properties for that node in the Properties Pane. Editable Properties are displayed in black. Those which can't be edited are displayed in grey.

The following table lists some of the main Properties available for the different nodes: